<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>

        var a = 11 ;

        console.log(typeof a) ;  // number


        var b = 'hi' ;

        console.log(typeof b) ;   // string   char字符 set设置


        var c = true ;

        console.log(typeof c) ;   // boolean   布尔值



        var d = null ;

        console.log(typeof d) ;   // object 对象


        var e ;

        console.log(typeof e) ;  // undefined 

    </script>
    
</body>
</html>